import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/",
      redirect:"/login"
    },{
      path: '/login',
      component:resolve => require(['../components/page/login/login.vue'], resolve)
    },{
      path:"/login/sad",
      component:resolve => require(['../components/page/login/loginShow/show.vue'], resolve)
    },{
      path:"/login/fireworks",
      component:resolve => require(['../components/page/login/loginShow/show.vue'], resolve)
    },{
      path:"/login/flowers",
      component:resolve => require(['../components/page/charts/flowers.vue'], resolve)
    },{
      path:"/homepage/menu",
      component:resolve => require(['../components/page/homepage/menu.vue'], resolve)
    },{
      path: '/error/404',
      component:resolve => require(['../components/page/error/error.vue'], resolve)
    },
  ]
})
